Skip to content

experiment: lower compile target to JDK 22 (test 22 + 25)#47

Closed
dfa1 wants to merge 1 commit into
mainfrom
experiment/jdk22-floor
Closed

experiment: lower compile target to JDK 22 (test 22 + 25)#47
dfa1 wants to merge 1 commit into
mainfrom
experiment/jdk22-floor

Conversation

@dfa1

@dfa1 dfa1 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Experiment — not for merge as-is. Tests whether the project builds + passes on JDK 22 (first stable FFM, JEP 454) as well as 25, to decide if the supported floor can drop from 25.

Changes

  • maven.compiler.release 25 → 22 (root pom: property + compiler + javadoc <release>)
  • ci.yml build job → matrix java: ['22', '25']

Why it matters

Most production JVMs run 17/21, not 25. If 22 is green, dropping the floor widens the addressable audience massively — the #1 adoption lever discussed for promotion.

What to watch in the run

  • 22 leg compiles → no >22 API in use (--release 22 enforces this)
  • 22 leg tests pass → FFM + unnamed patterns etc. behave on a real 22 runtime
  • failOnWarning + -Xlint:all may surface 22-specific warnings
  • If 22 fails, the log shows exactly which API/feature forces 25

Report-driven: I'll summarize per-leg results.

🤖 Generated with Claude Code

FFM (java.lang.foreign) went stable in JDK 22 (JEP 454), so the project may
not actually need a JDK 25 floor. Drop maven.compiler.release 25 -> 22 and
run the CI build matrix on both 22 and 25 to find out. If 22 is green, the
supported floor can drop, widening the addressable audience substantially
(most prod JVMs are on 17/21, not 25).

Experiment only — not for merge as-is; report-driven.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1

dfa1 commented Jun 28, 2026

Copy link
Copy Markdown
Owner Author

Experiment concluded: JDK 22 fails only on /// Markdown javadoc (JEP 467, needs JDK 23), and JDK 21 is blocked by FFM being preview there. The big 21-LTS audience is unreachable regardless; 23/24 are non-LTS. Staying on JDK 25 — the first LTS with production-stable FFM. Not merging.

@dfa1 dfa1 closed this Jun 28, 2026
@dfa1 dfa1 deleted the experiment/jdk22-floor branch June 28, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant